package com.example.njupt.base.mvp;

import com.example.njupt.okhttp.retrofit.BaseResult;

/**
 * Author:      mwang
 * Create Date: Created in 2021/4/26 11:33
 * Update Date:
 * Modified By:
 * Description:
 */
public interface IView {
    /**
     * 显示dialog
     */
    void showLoading();

    /**
     * 隐藏 dialog
     */
    void hideLoading();

    /**
     * 显示错误信息
     *
     * @param msg 错误信息
     */
    void showError(String msg);
    /**
     * 错误码
     */
    void onErrorCode(BaseResult result);

}
